function person(p){
    return `Hello,i am ${p.name}`
}

interface Person{
    name:string
}

//联合类型
type abc =number|string

//交叉类型
type def =Person&{ age : number}

let obj: def={
    
}